<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改客户信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-basCustomer-edit" th:object="${basCustomer}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">客户编码：</label>
                <div class="col-sm-8">
                    <input name="customerNo" th:field="*{customerNo}" class="form-control" type="text">
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">客户分类：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="customerGroupNo" th:field="*{customerGroupNo}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">客户名称：</label>
                <div class="col-sm-8">
                    <input name="customerName" th:field="*{customerName}" class="form-control" type="text">
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">客户简称：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="simpleName" th:field="*{simpleName}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否可用：</label>
                <div class="col-sm-8">
<!--                    <input name="useable" th:field="*{useable}" class="form-control" type="text">-->
                    <select name="useable" th:field="*{useable}" class="form-control" type="text">
                        <option value="">---请选择---</option>
                        <option value="0">否</option>
                        <option value="1">是</option>
                    </select>
                </div>
            </div>

<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">业务部门：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="businessDepartment" th:field="*{businessDepartment}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">业务员：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="salesman" th:field="*{salesman}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">助忆码：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="mnemonicCode" th:field="*{mnemonicCode}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">纳税人登记号：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="taxpayerRegistrationNumber" th:field="*{taxpayerRegistrationNumber}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">对应财务组织：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="organization" th:field="*{organization}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">上级客户：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="supCustomer" th:field="*{supCustomer}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">散户：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="retailInvestor" th:field="*{retailInvestor}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">地区分类：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="country" th:field="*{country}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">时区：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="timeZone" th:field="*{timeZone}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">数据格式：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="dataFormat" th:field="*{dataFormat}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">联系人姓名：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="contactName" th:field="*{contactName}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">发货国家：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="shipment" th:field="*{shipment}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">税类：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="taxCategory" th:field="*{taxCategory}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input name="remark" th:field="*{remark}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "bas/basCustomer";
        $("#form-basCustomer-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-basCustomer-edit').serialize());
            }
        }
    </script>
</body>
</html>